package org.example.reflection;

import org.example.config.Configuration;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

public class ParamNameResolver {
    private final Configuration config;
    private final Method method;

    public ParamNameResolver(Configuration config, Method method) {
        this.config = config;
        this.method = method;

        final Class<?>[] paramTypes = method.getParameterTypes();
        final Annotation[][] paramAnnotations = method.getParameterAnnotations();
        //TODO
    }

    public Object getNamedParams(Object[] args) {
        if(args != null && args.length == 1){
            return args[0];
        }
        return null;
    }
}
